package config

import "os"

var NacosPath string
var NacosPort uint64

func SelectNacos() {
	envCode := os.Getenv("CONFIGENV")
	switch envCode {
	case "10":
		NacosPath = "http://10.0.73.216"
		NacosPort = 8848
	case "20":
		NacosPath = "http://10.0.73.216"
		NacosPort = 8848
	case "30":
		NacosPath = "http://10.0.73.216"
		NacosPort = 8848
	case "40":
		NacosPath = "http://nacos4.ops.zhaogangren.com"
		NacosPort = 80
	case "50":
		NacosPath = "http://10.0.73.216"
		NacosPort = 8848
	case "60":
		NacosPath = "http://10.0.73.216"
		NacosPort = 8848
	case "70":
		NacosPath = "http://10.0.73.216"
		NacosPort = 8848

	default:
		NacosPath = "http://10.0.73.216"
		NacosPort = 8848
	}

}

func init() {
	SelectNacos()
}
